from celery import Celery
# from app import app
# app.config['CELERY_BROKER_URL'] = 'redis://localhost:6379/0'
# app.config['CELERY_RESULT_BACKEND'] = 'redis://localhost:6379/0'
# celery = Celery(app, broker=app.config['CELERY_BROKER_URL'])
# celery.conf.update(app.config)
brokers = 'redis://192.168.0.18:6379/0'
backend = 'redis://192.168.0.18:6379/0'
celery = Celery('tasks', broker=brokers, backend=backend)
@celery.task
def add(x, y):
    return x + y